﻿/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	//config.width = 360;  
	//config.height = 300;  
	//config.skin = 'office2003'; //共有3中皮肤可选择：kama（默认）、office2003、v2
config.filebrowserBrowseUrl = '/leyu_admin_web//ckfinder/ckfinder.html';
config.filebrowserImageBrowseUrl = '/leyu_admin_web/ckfinder/ckfinder.html?type=Images';
config.filebrowserFlashBrowseUrl = '/leyu_admin_web/ckfinder/ckfinder.html?type=Flash';
config.filebrowserUploadUrl = '/leyu_admin_web//ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files';
config.filebrowserImageUploadUrl = '/leyu_admin_web//ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Images';
config.filebrowserFlashUploadUrl = '/leyu_admin_web//ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Flash';
config.language = "zh-cn";


CKEDITOR.on('dialogDefinition',function (ev) {
	  var dialogName = ev.data.name;
	  var dialogDefinition = ev.data.definition;
	  //alert(dialogName);
	  if (dialogName == 'image') {
		  dialogDefinition.removeContents('advanced');//消除advanced标签
		  dialogDefinition.removeContents('Link');//消除Link标签
		  
		  }
});

config.image_previewText = "/upload/images/images/";
};
